package com.df.excel_export.common;

import java.io.IOException;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.Properties;

public class AppplicationConfig {
    public static String excel_config_path;
    static {
        Properties properties = new Properties();
        try {
            properties.load(AppplicationConfig.class.getResourceAsStream("/application.properties"));
            String path = properties.getProperty("excel_export_config_path");
            String normalizePath = Paths.get(path).normalize().toAbsolutePath().toString();
            excel_config_path = normalizePath;
            // 设置其他属性...
        } catch (IOException e) {
            throw new RuntimeException(e);
        }
    }
}
